package com.xysoft.framework.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author KongXiangxi
 * 实体事件
 */
public class EntityEvent extends ApplicationEvent {

	private static final long serialVersionUID = -4656086098159247137L;
	
	private Object entity;
	private Object entityName;

	public EntityEvent(Object source, String entityName, Object entity) {
		super(source);
		this.entityName = entityName;
		this.entity = entity;
	}

	public Object getEntity() {
		return entity;
	}

	public Object getEntityName() {
		return entityName;
	}

}
